package com.lt.test.entity.DTO;

import com.lt.test.entity.DO.RoleDO;

/**
 * Created by zhengchuan on 2017/3/30.
 */
public class CustomRole extends RoleDO {
    private String gmtCreateStr;
    private String gmtModifiedStr;
    private String state;
    private String roleNo;

    public String getGmtCreateStr() {
        return gmtCreateStr;
    }

    public void setGmtCreateStr(String gmtCreateStr) {
        this.gmtCreateStr = gmtCreateStr;
    }

    public String getGmtModifiedStr() {
        return gmtModifiedStr;
    }

    public void setGmtModifiedStr(String gmtModifiedStr) {
        this.gmtModifiedStr = gmtModifiedStr;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getRoleNo() {
        return roleNo;
    }

    public void setRoleNo(String roleNo) {
        this.roleNo = roleNo;
    }

    @Override
    public void setDelete(boolean delete) {
        super.setDelete(delete);
        if (delete){
            this.state = "无效";
        }else {
            this.state = "有效";
        }
    }

    @Override
    public String toString() {
        return "CustomRole{" +
                "gmtCreateStr='" + gmtCreateStr + '\'' +
                ", gmtModifiedStr='" + gmtModifiedStr + '\'' +
                ", state='" + state + '\'' +
                ", roleNo='" + roleNo + '\'' +
                '}';
    }
}
